<template>
  <div id="app">
      <el-container>
        <el-header>Header</el-header>
        <el-container>
          <!-- 侧边栏内容 -->
          <el-aside width="200px">

            <el-menu router 
                default-active="2"
                background-color="#545c64"
                text-color="#fff"
                active-text-color="#ffd04b">
                <el-submenu index="1">
                  <template slot="title">
                    <i class="el-icon-location"></i>
                    <span>内容管理</span>
                  </template>
                  <el-menu-item-group>
                    <el-menu-item index="/articles/index">
                      <i class="el-icon-circle-plus"></i>
                      <span>列表</span>
                    </el-menu-item>
                    <el-menu-item index="/articles/create">
                      <i class="el-icon-s-open"></i>
                      <span>新增</span>
                      </el-menu-item>
                  </el-menu-item-group>
                </el-submenu>
              </el-menu>

          </el-aside>
          <el-container>
            <!-- main主体内容 -->
            <el-main>
              <router-view></router-view>
            </el-main>
            <el-footer>Footer</el-footer>
          </el-container>
        </el-container>
      </el-container>
  </div>
</template>

<script>
export default {
 
}
</script>

<style>
html,body{
  margin: 0;
  padding: 0;
}

#app{
  height: 100vh;
}
.el-container{
  height: 100%;
}

 .el-header, .el-footer {
    background-color: #B3C0D1;
    color: #333;
    text-align: center;
    line-height: 60px;
  }
   
  .el-aside {
    background-color: #D3DCE6;
    color: #333;
    text-align: center;
    line-height: 200px;
  }
  
  .el-main {
    padding: 0  !important;
    margin:0 80px !important;
    background-color: #fff;
    color: #333;
    text-align: center;
    line-height: 160px;

  }
  
  body > .el-container {
    margin-bottom: 40px;
  }
  
  .el-container:nth-child(5) .el-aside {
    line-height: 260px;
  }
  

  .el-table .warning-row {
    background: oldlace;
  }

  .el-table .success-row {
    background:#f0f9eb;
  }
</style>
